<template>
	<view class="top">确认订单</view>
	<view class="card">
		<view class="card-top">
			<view style="background-color: #3B8AEF;">预约服务</view>
			<view style="background-color: #13D9A2;">支付订单</view>
			<view style="background-color: #FC7B55;">门店服务</view>
		</view>
		<view class="title">
			<view class="title-top">
				<image src="/static/upkeep/商家.png" style="width: 40rpx;height: 40rpx;"></image>
				<view>
					<view>伟业汽车美容店（人民路店）</view>
					<view>山阳区人民中路33号</view>
				</view>
			</view>
			<view  class="title-top">
				<image src="/static/upkeep/人员.png"  style="width: 40rpx;height: 40rpx;"></image>
				<view>林先生 </view> 
				<text style="text-align: left">17700997277</text>
			</view>
			<view  class="title-top">
				<image src="/static/upkeep/车辆-01.png"  style="width: 40rpx;height: 40rpx;"></image>
				<view>立即预约 </view> 
				<image src="/static/upkeep/收起箭头小.png"  style="width: 20rpx;height: 30rpx;"></image>
			</view>
			<view  class="title-top" @click="cat">
				<image src="/static/upkeep/车辆-01(1).png"  style="width: 40rpx;height: 30rpx;"></image>
				<view>奔驰FWE4/豫A56487 </view> 
				<image src="/static/upkeep/收起箭头小.png"  style="width: 20rpx;height: 30rpx;"></image>
			</view>
		</view>
		<view class="fuwu">
			<view  class="fuwu-top">
				<view>服务产品</view> 
				<text style="text-align: left">共选择2项服务产品</text>
			</view>
			<view class="prod">
				小保养套餐1(合成机油+机滤)
				<span>¥39.9</span>
			</view>
			<view class="prod">
				小保养套餐1(合成机油+机滤)
				<span>¥39.9</span>
			</view>
		</view>
		<view  class="title-top">
			<image src="/static/upkeep/优惠券.png"  style="width: 40rpx;height: 30rpx;"></image>
			<view>代金劵/优惠劵</view> <span style="margin-right: 10px;color: red;">¥39.9</span>
			<image src="/static/upkeep/收起箭头小.png"  style="width: 20rpx;height: 30rpx;"></image>
		</view>
	</view>
	<!-- 底部 -->
	<view class="bottom-bar">
		<view class="contact" >
		  <image src="/static/upkeep/客服.png"></image>
		  <text>联系客服</text>
		</view>
		<view class="total">
		  <text style="margin-right: 10px;color: red;">合计: ￥79.8</text>
		  <button class="btn" @click="submitOrder">提交订单</button>
		</view>
	</view>
	
	
</template>

<script setup>
import { ref } from 'vue';
function cat(){
	uni.navigateTo({
		url:'/pages/upkeep/selectCat/selectCat'
	})
}

function submitOrder(){
	uni.navigateTo({
		url:'/pages/upkeep/orderPay/orderPay'
	})
}
	

</script>

<style>
.top{
	color: white;
	padding-top: 50rpx;
	text-align: center;
	background-color: #3284FC;
	height: 300rpx;
	font-size: 20px;
	font-weight: 600;
}
.card{
	margin: 10px;
	background-color: white;
	padding: 20px;
	margin-top: -200rpx;
	border-radius: 10px;
}
.card-top{
	padding: 20px 0;
	display: flex;
	justify-content: space-around;
	align-items: center;
	border-bottom: 4px solid #F7F7F7;
}
.card-top view{
	color: white;
	border-radius: 50%;
	text-align: center;
	flex-wrap: wrap;
	width: 40px;
	height: 40px;
	padding: 15rpx;
}
.title{
	border-bottom: 4px solid #F7F7F7;
	padding: 20px 0;
}
.title-top{
	padding: 20rpx 0;
	display: flex;
	align-items: center;
	
}
.title-top > view{
	margin-left: 10rpx;
	flex-grow: 1;
}
.fuwu{
	border-bottom: 4px solid #F7F7F7;
	padding: 20px 0;
}
.fuwu-top{
	display: flex;
	align-items: center;
	padding: 20rpx 0;
	
}
.fuwu-top >view{
	flex-grow: 1;
}
.prod{
	margin: 20rpx 0;
}
.prod span{
	color: red;
	margin-left: 10px
}
.bottom-bar{
	position: fixed;
	bottom: 5rpx;
	left: 0;
	right: 0;
	z-index: 999;
	margin-top: 100%;
	background-color: white;
	margin-top: auto;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.contact{
	display: flex;
	align-items: center;
	
}
.contact text{
	margin-left: 10rpx;
}
.contact image{
	width: 30px;
	height: 30px;
}
.total{
	display: flex;
	align-items: center;
}
.btn{
	padding: 0 20px;
	font-size: 14px;
	color: white;
	border-radius: 20px;
	background-color: #3789FF;
}
</style>
